import Vue from 'vue'

export default Vue.extend({
  functional: true,
  // eslint-disable-next-line vue/require-prop-types
  props: ['render', 'data'],
  render: (h, ctx) => {
    const props = ctx.props as any
    const params = {
      data: props.data,
    }

    return props.render(h, params)
  },
})
